package lock;

/**
 * @program: Dome
 * @description:
 * @className: TestTicke
 * @author: rjt99999
 * @version: 1.0.0
 * @create: 2020-08-02 19:35
 **/
public class TestTicke {

    public static void main(String[] args) {

        //线程对象
        Ticket ticket = new Ticket();

        //三个窗户
        Thread thread1 = new Thread(ticket,"1");
        Thread thread2 = new Thread(ticket,"2");
        Thread thread3 = new Thread(ticket,"3");

        thread1.start();
        thread2.start();
        thread3.start();




    }


}
